package com.mfangsoft.zhuangjialong.app.seller.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.mfangsoft.zhuangjialong.app.seller.model.Seller;
import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.common.utils.stereotype.WriterRepository;
import com.mfangsoft.zhuangjialong.integration.biotopeInfo.model.BiotopeInfo;
import com.mfangsoft.zhuangjialong.integration.user.model.UserEntity;

@WriterRepository
public interface SellerMapper {
	Map<String,Object> selectSellerByUserName(String userName);
	String selectFiliale(Integer shopId);
	Map<String,Object> selectStatistics(Integer sellerId);
	Map<String, Object> selectTodayCustomer(Integer i);
	Integer updateSellerPhone(Map<String,Object> map);
	
	Map<String,Object> selectActivityInfo(Map<String,Object> map);
	
	Integer selectSellerLoginPoint(Integer id);
	
	Integer selectNode3(Integer shop_id);
	
	
	int insertSelective(Seller seller);
	
	Seller selectOneBuUserName(String user_name);
	
	int updateByPrimaryKeySelective(Seller record);
	
	UserEntity selectIdFromUserByZzhBmh(@Param(value = "zzh") String zzh, @Param(value = "bmh") String bmh);
	
	List<Map<String,Object>> selectSellerPoint(String phone);
	
	void updateSellerPointStatus(Map<String,Object> map);
	
	List<Map<String,Object>> selectSellerInfo(String phone);
	
	String selectNode3Image(Map<String,Object> node3);
	
	List<Map<String, Object>> selectAccountInformation3(Long user_id);
	
	List<Map<String, Object>> selectAccountInformation1(Long user_id);
	
	Map<String,Object> selectSellerInfoById(Integer sellerId);
	
	public List<Map<String, Object>> selectBiotopeInfoPage(Page<Map<String, Object>> page);
	
	public Integer updateBiotopeInfo(BiotopeInfo biotopeInfo);
	
	public List<Map<String, Object>> selectCustomerOrderByCustomerId(Long id);

	public  Map<String,Object>  selectCustomerInfoByPhone(String phone);
	
	public List<Map<String, Object>> selectCustomerInfoListBySellerPhone(String phone);
	
}

